home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
DCLAP 6d
/
dclap6d
/
DNet
/
DURL.h
< prev
Wrap
Text File
|
1996-07-05
|
731b
|
42 lines
// DURL.h
// by D. Gilbert, Sep 94
#ifndef __DURL__
#define __DURL__
class DNetOb;
class DURL : public DObject {
public:
enum {
alphaChars = 1,
alphaPlusChars = 2,
pathChars = 4,
HEX_ESCAPE = '%'
};
enum Parts {
kPartNone = 0,
kPartProtocol = 1,
kPartHost = 2,
kPartPort = 4,
kPartPath = 8
};
static short IsURL( const char *line, char*& url, long maxline = 0);
static Boolean ParseURL( DNetOb* nob, const char *url, long urlsize = 0,
Boolean verbatim = true);
static char* EncodeChars( const char* str, unsigned char mask = pathChars);
static char* DecodeChars( char * str);
static char* GetParts( const char* url, long whichparts, long urlsize = 0);
DURL();
};
#endif